package com.redmoon.oa.flow;

import cn.js.fan.web.Global;
import com.cloudwebsoft.framework.db.Connection;
import com.cloudwebsoft.framework.util.LogUtil;

import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.*;

public class WorkflowInitThread extends Thread {
    Vector<String> vStart;
    WorkflowActionDb waStart;
    WorkflowDb wf;
    Map<String, WorkflowActionDb> actionMap;
    List<WorkflowLinkDb> linkList;

    WorkflowInitThread(WorkflowDb wf, Vector<String> vStart, WorkflowActionDb waStart, Map<String, WorkflowActionDb> actionMap, List<WorkflowLinkDb> linkList) {
        this.wf = wf;
        this.vStart = vStart;
        this.waStart = waStart;
        this.actionMap = actionMap;
        this.linkList = linkList;
    }

    @Override
    public void run() {
        wf.createActionAndLink(wf, vStart, waStart, actionMap, linkList);
    }
}
